<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户体验</title>
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<style>
    @font-face {
        font-family: "auiFont";
        src: url(font/iconfont.ttf);
    }

    * {
        margin: 0;
        padding: 0;
    }



    div {
        width: 100px;
        height: 100px;
        line-height: 100px;
        float: left;
        margin-right: 30px;
        text-align: center;
        background: rgba(0, 0, 0, .5);
    }

    .notallow {
        cursor: not-allowed;
    }

    .bigEare {
        background: none;
    }


    .notallow{
        cursor:not-allowed;
    }
    .bigEare{
        background: none;
    }
    .spanEare{
        display: block;
        background: #86a;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin: 50% auto;
        /*border: 20px solid transparent;*/
        background-clip: padding-box;
        cursor: pointer;
        box-shadow: inset 0 0 0 1px black,
        0 2px 2px -1px black;
        position: relative;
    }

    .spanEare:before {
        content: "";
        position: absolute;
        top: -10px;
        bottom: -10px;
        right: -10px;
        left: -10px;
    }
    input[type=checkbox] {
        width: 18px;
        height: 18px;
        position: relative;
        border-radius: 50%;
        background-color: yellowgreen;
        -webkit-appearance: none;
    }


    input[type=checkbox]:checked:before{
        content: '\e645';
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        position: absolute;
        background-color: yellowgreen;
        color: red;
        font-family: auiFont;
    }

    .scroll {
        background: #fff;
        padding: 10px;
        height: 150px !important;
    }

    .scroll ul {
        height: 150px;
        overflow: auto;
        background: linear-gradient(white, transparent) 0 0/100% 40px,
        radial-gradient(at top, #ccc, transparent) 0 0/100% 15px,
        linear-gradient(to top, white, transparent) 0 100%/100% 40px,
        radial-gradient(#ccc, transparent) 0 100%/100% 15px;
        background-repeat: no-repeat;
        background-attachment: local, scroll, local, scroll;
    }

    .scroll ul li {
        list-style: none;
        line-height: normal;
    }

    .widthMincontents {
        width: 400px;
        line-height: inherit;
        height: 400px;
        background: #ccc;
    }
    .widthMincontent{


        line-height: inherit;
        height: 400px;
    }

    .scroll{
        background: #fff;
        padding: 10px;
        height: 150px;
    }
    .scroll ul{
        height: 150px;
        overflow: auto;
        background: linear-gradient(white ,transparent)0 0/100% 40px,
                    radial-gradient(at top,#ccc,transparent )0 0/100% 15px,
                    linear-gradient(to top,white ,transparent)0 100%/100% 40px,
                    radial-gradient( #ccc ,transparent)0 100%/100% 15px;
        background-repeat: no-repeat;
        background-attachment:local,scroll,local,scroll;
    }
    .scroll ul li{
        list-style:none;
        line-height:normal;
    }

</style>
<body>
<div class="notallow">
    鼠标禁止
</div>
<div class="bigEare">
    <span class="spanEare"></span>
</div>
<div class="checkbox">
    <input type="checkbox" class="aa">
    <input type="checkbox">
    <input type="checkbox">
</div>
<div class="scroll">
    <ul>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
        <li>这个测试</li>
    </ul>
</div>
<div class="widthMincontents">
    <div class="widthMincontent">

        <em class="color:red">width:min-content</em>
        <br>
        <img src="image/cat.jpg" width="200" alt="">
        <p>这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试这个测试
        </p>
    </div>
</div>
</body>
</html>